package com.thingple.usb.manager;

import android.hardware.usb.UsbAccessory;
import android.util.Log;

public abstract class UsbDeviceScanner extends AbstractUsbReceiver implements UsbDeviceManager {
    @Override
    public void scan() {
        if (usbManager != null) {
            UsbAccessory[] accessories = usbManager.getAccessoryList();
            if (accessories == null || accessories.length == 0) {
                return;
            }
            handleDeviceAttach(accessories[0]);// 最多只能连一个
        }
    }
}
